<template>
    <web-view :src="addCardPath" @message="messageHandle" @error="handleError"></web-view>
</template>
<config>
    {
    "navigationBarTitleText": "添加/编辑卡片",
    }
</config>
<script>

  export default {
    name: "add-card",
    data() {
      return {
        addCardPath: process.env.VUE_APP_ADD_CARD_URL + '#/?token=' + this.$store.getters.token
      }
    },
    methods: {
      messageHandle({detail}) {
        console.log(detail)
      },
      handleError(e){
        console.log(e)
      }
    },
    mounted(){
      console.log(this.addCardPath)
    }
  }
</script>

<style scoped lang="less">

</style>
